package at.fhj.ase.presentation;

/**
 * 
 * @author Zandmiralvand, Mansouri, Jaklitsch
 * 
 * This is the main class
 *
 */

public class AIIStartup {
	
	static Boolean continueExecution = Boolean.TRUE;

	public static void main(String[] args){
		
		System.out.println("AII intrusion detection application\n");
		InputHandler inputHandler = new InputHandler();
		//present the menu to the user
		do {			
			showMenu();
			inputHandler.handleInput(InputHandler.takeInput());
			 
		} while(continueExecution.equals(Boolean.TRUE));
	}
	
	public static void showMenu() {
		StringBuilder builder = new StringBuilder();
		
		for (Command command : Command.values()) {
			builder.append(command.printMsg).append("\n");
		}
		System.out.println(builder.toString());
	}
}
